package pl.kosmowska.ewelina.client.app.requestfactory;

import java.util.List;

import pl.kosmowska.ewelina.client.app.requestfactory.dto.CategoryDataProxy;
import pl.kosmowska.ewelina.client.app.requestfactory.dto.OutcomeDataProxy;
import pl.kosmowska.ewelina.server.dao.CategoryDataDAO;
import pl.kosmowska.ewelina.server.dao.OutcomeDataDAO;
import pl.kosmowska.ewelina.server.jdo.CategoryData;
import pl.kosmowska.ewelina.server.locators.EntityServiceLocator;

import com.google.web.bindery.requestfactory.shared.InstanceRequest;
import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.Service;

@Service(value = CategoryDataDAO.class, locator = EntityServiceLocator.class)
public interface CategoryDataRequest extends RequestContext {

  Request<CategoryDataProxy> findCategoryData(String id);
  
  Request<List<CategoryDataProxy>> findCategoryDataByUser();
  
  Request<CategoryDataProxy> persist(CategoryDataProxy categoryDataProxy);
  
  Request<Boolean> deleteById(String id);
  
}
